package net.tv90.volunteerserveradmin.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 业务异常
 */
@Getter
public class ServiceException extends RuntimeException {

    HttpStatus status = HttpStatus.OK;

    public ServiceException(String message, HttpStatus status) {
        super(message);
        this.status = status;
    }

    public ServiceException(String message) {
        super(message);
    }

}
